.class Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;
.super Ljava/lang/Object;
.source "PortalFragment.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/brixd/niceapp/community/PortalFragment;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "CloverOnClickListener"
.end annotation


# instance fields
.field bannerModel:Lcom/brixd/niceapp/model/BannerModel;

.field position:I

.field final synthetic this$0:Lcom/brixd/niceapp/community/PortalFragment;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/PortalFragment;Lcom/brixd/niceapp/model/BannerModel;I)V
    .registers 4
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/PortalFragment;
    .param p2, "model"    # Lcom/brixd/niceapp/model/BannerModel;
    .param p3, "position"    # I

    .prologue
    .line 388
    iput-object p1, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 389
    iput-object p2, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    .line 390
    iput p3, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->position:I

    .line 391
    return-void
.end method

.method static synthetic access$1000(Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;

    .prologue
    .line 383
    invoke-direct {p0}, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->goToVideoActivity()V

    return-void
.end method

.method private goToVideoActivity()V
    .registers 6

    .prologue
    .line 485
    iget-object v2, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-virtual {v2}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v2

    const-string v3, "VideoPlayFromBanner"

    invoke-static {v2, v3}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 487
    new-instance v0, Landroid/content/Intent;

    iget-object v2, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-virtual {v2}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v2

    const-class v3, Lcom/brixd/niceapp/activity/AppVideoActivity;

    invoke-direct {v0, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 488
    .local v0, "intent":Landroid/content/Intent;
    new-instance v1, Lcom/brixd/niceapp/model/VideoAppModel;

    invoke-direct {v1}, Lcom/brixd/niceapp/model/VideoAppModel;-><init>()V

    .line 489
    .local v1, "videoAppModel":Lcom/brixd/niceapp/model/VideoAppModel;
    iget-object v2, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v2, v2, Lcom/brixd/niceapp/model/BannerModel;->videoUrl:Ljava/lang/String;

    iput-object v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->videoUrl:Ljava/lang/String;

    .line 490
    iget-object v2, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v2, v2, Lcom/brixd/niceapp/model/BannerModel;->iconUrl:Ljava/lang/String;

    iput-object v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->iconUrl:Ljava/lang/String;

    .line 491
    iget-object v2, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-boolean v2, v2, Lcom/brixd/niceapp/model/BannerModel;->videoIsPortrait:Z

    iput-boolean v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->isPortrait:Z

    .line 492
    iget-object v2, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget v2, v2, Lcom/brixd/niceapp/model/BannerModel;->articleId:I

    iput v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->articleId:I

    .line 493
    const/4 v2, 0x0

    iput v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->articleType:I

    .line 494
    iget-object v2, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v2, v2, Lcom/brixd/niceapp/model/BannerModel;->packageName:Ljava/lang/String;

    iput-object v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->packageName:Ljava/lang/String;

    .line 495
    iget-object v2, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget v2, v2, Lcom/brixd/niceapp/model/BannerModel;->minSdkVersion:I

    iput v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->minSdkVersion:I

    .line 496
    iget-object v2, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v2, v2, Lcom/brixd/niceapp/model/BannerModel;->title:Ljava/lang/String;

    iput-object v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->title:Ljava/lang/String;

    .line 497
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "#"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-virtual {v3}, Lcom/brixd/niceapp/community/PortalFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f0c0011

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "# "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v3, v3, Lcom/brixd/niceapp/model/BannerModel;->title:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "\u2014\u2014"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v3, v3, Lcom/brixd/niceapp/model/BannerModel;->subTitle:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "\u3002 "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v3, v3, Lcom/brixd/niceapp/model/BannerModel;->description:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v3, v3, Lcom/brixd/niceapp/model/BannerModel;->videoShareUrl:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->shareContent:Ljava/lang/String;

    .line 500
    iget-object v2, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v2, v2, Lcom/brixd/niceapp/model/BannerModel;->downloadUrl:Ljava/lang/String;

    iput-object v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->downloadUrl:Ljava/lang/String;

    .line 502
    const-string v2, "video_app_model"

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 503
    const/high16 v2, 0x10000000

    invoke-virtual {v0, v2}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 504
    iget-object v2, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-virtual {v2, v0}, Lcom/brixd/niceapp/community/PortalFragment;->startActivity(Landroid/content/Intent;)V

    .line 505
    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 14
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 395
    new-instance v7, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;

    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-virtual {v8}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v8

    invoke-direct {v7, v8}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;-><init>(Landroid/content/Context;)V

    .line 397
    .local v7, "util":Lcom/brixd/niceapp/util/DetailRequestCacheUtil;
    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget v0, v8, Lcom/brixd/niceapp/model/BannerModel;->actionType:I

    .line 398
    .local v0, "actionType":I
    const/4 v8, 0x1

    if-ne v0, v8, :cond_46

    .line 399
    new-instance v4, Landroid/content/Intent;

    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-virtual {v8}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v8

    const-class v9, Lcom/brixd/niceapp/activity/WebViewActivity;

    invoke-direct {v4, v8, v9}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 400
    .local v4, "intent":Landroid/content/Intent;
    const-string v8, "URL"

    iget-object v9, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v9, v9, Lcom/brixd/niceapp/model/BannerModel;->linkUrl:Ljava/lang/String;

    invoke-virtual {v4, v8, v9}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 401
    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-virtual {v8}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v8

    invoke-virtual {v8, v4}, Landroid/support/v4/app/FragmentActivity;->startActivity(Landroid/content/Intent;)V

    .line 473
    .end local v4    # "intent":Landroid/content/Intent;
    :cond_31
    :goto_31
    iget v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->position:I

    const/4 v9, 0x1

    if-ne v8, v9, :cond_141

    .line 474
    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-virtual {v8}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v8

    const-string v9, "clover_1_click"

    iget-object v10, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v10, v10, Lcom/brixd/niceapp/model/BannerModel;->title:Ljava/lang/String;

    invoke-static {v8, v9, v10}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 482
    :cond_45
    :goto_45
    return-void

    .line 402
    :cond_46
    const/4 v8, 0x2

    if-ne v0, v8, :cond_d7

    .line 403
    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v8, v8, Lcom/brixd/niceapp/model/BannerModel;->videoUrl:Ljava/lang/String;

    if-eqz v8, :cond_ce

    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v8, v8, Lcom/brixd/niceapp/model/BannerModel;->videoUrl:Ljava/lang/String;

    invoke-static {v8}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v8

    if-nez v8, :cond_ce

    .line 404
    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-virtual {v8}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v8

    invoke-static {v8}, Lcom/zuiapps/suite/utils/network/NetWorkHelper;->isWifiDataEnable(Landroid/content/Context;)Z

    move-result v6

    .line 405
    .local v6, "isWifiDataAvailable":Z
    const/4 v5, 0x0

    .line 407
    .local v5, "isMobileDataAvailable":Z
    :try_start_64
    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-virtual {v8}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v8

    invoke-static {v8}, Lcom/zuiapps/suite/utils/network/NetWorkHelper;->isMobileDataEnable(Landroid/content/Context;)Z
    :try_end_6d
    .catch Ljava/lang/Exception; {:try_start_64 .. :try_end_6d} :catch_79

    move-result v5

    .line 411
    :goto_6e
    if-nez v6, :cond_7e

    if-nez v5, :cond_7e

    .line 412
    const v8, 0x7f0c00d9

    invoke-static {v8}, Lcom/brixd/niceapp/util/ToastUtils;->show(I)V

    goto :goto_31

    .line 408
    :catch_79
    move-exception v3

    .line 409
    .local v3, "e":Ljava/lang/Exception;
    invoke-virtual {v3}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_6e

    .line 413
    .end local v3    # "e":Ljava/lang/Exception;
    :cond_7e
    if-nez v6, :cond_c9

    if-eqz v5, :cond_c9

    .line 414
    invoke-static {}, Lcom/brixd/niceapp/util/SettingUtils;->isVideoPlayOnlyWifiEnable()Z

    move-result v8

    if-nez v8, :cond_8c

    .line 415
    invoke-direct {p0}, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->goToVideoActivity()V

    goto :goto_31

    .line 417
    :cond_8c
    new-instance v2, Lcom/brixd/niceapp/ui/ConfirmDialog;

    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-virtual {v8}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v8

    const/4 v9, 0x1

    invoke-direct {v2, v8, v9}, Lcom/brixd/niceapp/ui/ConfirmDialog;-><init>(Landroid/content/Context;Z)V

    .line 419
    .local v2, "confirmDialog":Lcom/brixd/niceapp/ui/ConfirmDialog;
    const v8, 0x7f0c0026

    invoke-virtual {v2, v8}, Lcom/brixd/niceapp/ui/ConfirmDialog;->setMessage(I)V

    .line 420
    const/4 v8, 0x0

    invoke-virtual {v2, v8}, Lcom/brixd/niceapp/ui/ConfirmDialog;->setCheckboxState(Z)V

    .line 421
    const v8, 0x7f0c0023

    invoke-virtual {v2, v8}, Lcom/brixd/niceapp/ui/ConfirmDialog;->setCheckboxText(I)V

    .line 422
    const v8, 0x7f0c0024

    invoke-virtual {v2, v8}, Lcom/brixd/niceapp/ui/ConfirmDialog;->setCancelButtonText(I)V

    .line 423
    const v8, 0x7f0c0025

    invoke-virtual {v2, v8}, Lcom/brixd/niceapp/ui/ConfirmDialog;->setConfirmButtonText(I)V

    .line 424
    new-instance v8, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener$1;

    invoke-direct {v8, p0, v2}, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener$1;-><init>(Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;Lcom/brixd/niceapp/ui/ConfirmDialog;)V

    invoke-virtual {v2, v8}, Lcom/brixd/niceapp/ui/ConfirmDialog;->setOnCancelClickListener(Landroid/view/View$OnClickListener;)V

    .line 432
    new-instance v8, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener$2;

    invoke-direct {v8, p0, v2}, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener$2;-><init>(Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;Lcom/brixd/niceapp/ui/ConfirmDialog;)V

    invoke-virtual {v2, v8}, Lcom/brixd/niceapp/ui/ConfirmDialog;->setOnConfirmClickListener(Landroid/view/View$OnClickListener;)V

    .line 447
    invoke-virtual {v2}, Lcom/brixd/niceapp/ui/ConfirmDialog;->show()V

    goto/16 :goto_31

    .line 450
    .end local v2    # "confirmDialog":Lcom/brixd/niceapp/ui/ConfirmDialog;
    :cond_c9
    invoke-direct {p0}, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->goToVideoActivity()V

    goto/16 :goto_31

    .line 453
    .end local v5    # "isMobileDataAvailable":Z
    .end local v6    # "isWifiDataAvailable":Z
    :cond_ce
    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget v8, v8, Lcom/brixd/niceapp/model/BannerModel;->articleId:I

    invoke-virtual {v7, v8}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->gotoNiceDailyDetail(I)V

    goto/16 :goto_31

    .line 455
    :cond_d7
    const/4 v8, 0x3

    if-ne v0, v8, :cond_e3

    .line 456
    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget v8, v8, Lcom/brixd/niceapp/model/BannerModel;->articleId:I

    invoke-virtual {v7, v8}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->gotoCommunityDetail(I)V

    goto/16 :goto_31

    .line 457
    :cond_e3
    const/4 v8, 0x4

    if-ne v0, v8, :cond_fe

    .line 458
    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-virtual {v8}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v8

    new-instance v9, Landroid/content/Intent;

    iget-object v10, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-virtual {v10}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v10

    const-class v11, Lcom/brixd/niceapp/activity/DailyAppsActivity;

    invoke-direct {v9, v10, v11}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {v8, v9}, Landroid/support/v4/app/FragmentActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_31

    .line 459
    :cond_fe
    const/4 v8, 0x5

    if-ne v0, v8, :cond_31

    .line 460
    new-instance v1, Lcom/brixd/niceapp/model/AlbumHolderModel;

    invoke-direct {v1}, Lcom/brixd/niceapp/model/AlbumHolderModel;-><init>()V

    .line 461
    .local v1, "albumHolderModel":Lcom/brixd/niceapp/model/AlbumHolderModel;
    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v8, v8, Lcom/brixd/niceapp/model/BannerModel;->albumCoverUrl:Ljava/lang/String;

    iput-object v8, v1, Lcom/brixd/niceapp/model/AlbumHolderModel;->albumImageUrl:Ljava/lang/String;

    .line 462
    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v8, v8, Lcom/brixd/niceapp/model/BannerModel;->title:Ljava/lang/String;

    iput-object v8, v1, Lcom/brixd/niceapp/model/AlbumHolderModel;->albumTitle:Ljava/lang/String;

    .line 463
    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget v8, v8, Lcom/brixd/niceapp/model/BannerModel;->articleId:I

    iput v8, v1, Lcom/brixd/niceapp/model/AlbumHolderModel;->albumId:I

    .line 464
    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v8, v8, Lcom/brixd/niceapp/model/BannerModel;->description:Ljava/lang/String;

    iput-object v8, v1, Lcom/brixd/niceapp/model/AlbumHolderModel;->albumDescription:Ljava/lang/String;

    .line 465
    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v8, v8, Lcom/brixd/niceapp/model/BannerModel;->rgb:Ljava/lang/String;

    iput-object v8, v1, Lcom/brixd/niceapp/model/AlbumHolderModel;->textBgColor:Ljava/lang/String;

    .line 467
    new-instance v4, Landroid/content/Intent;

    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-virtual {v8}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v8

    const-class v9, Lcom/brixd/niceapp/activity/AppAlbumActivity;

    invoke-direct {v4, v8, v9}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 468
    .restart local v4    # "intent":Landroid/content/Intent;
    const-string v8, "album_holder_model"

    invoke-virtual {v4, v8, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 469
    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-virtual {v8}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v8

    invoke-virtual {v8, v4}, Landroid/support/v4/app/FragmentActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_31

    .line 475
    .end local v1    # "albumHolderModel":Lcom/brixd/niceapp/model/AlbumHolderModel;
    .end local v4    # "intent":Landroid/content/Intent;
    :cond_141
    iget v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->position:I

    const/4 v9, 0x2

    if-ne v8, v9, :cond_157

    .line 476
    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-virtual {v8}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v8

    const-string v9, "clover_2_click"

    iget-object v10, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v10, v10, Lcom/brixd/niceapp/model/BannerModel;->title:Ljava/lang/String;

    invoke-static {v8, v9, v10}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_45

    .line 477
    :cond_157
    iget v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->position:I

    const/4 v9, 0x3

    if-ne v8, v9, :cond_16d

    .line 478
    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-virtual {v8}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v8

    const-string v9, "clover_3_click"

    iget-object v10, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v10, v10, Lcom/brixd/niceapp/model/BannerModel;->title:Ljava/lang/String;

    invoke-static {v8, v9, v10}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_45

    .line 479
    :cond_16d
    iget v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->position:I

    const/4 v9, 0x4

    if-ne v8, v9, :cond_45

    .line 480
    iget-object v8, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->this$0:Lcom/brixd/niceapp/community/PortalFragment;

    invoke-virtual {v8}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v8

    const-string v9, "clover_4_click"

    iget-object v10, p0, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;->bannerModel:Lcom/brixd/niceapp/model/BannerModel;

    iget-object v10, v10, Lcom/brixd/niceapp/model/BannerModel;->title:Ljava/lang/String;

    invoke-static {v8, v9, v10}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_45
.end method
